Path Parameters
Unique identifier of the knowledge base (UUID format)
Request Body
Array of document URLs to add to the knowledge baseSupported formats:
- PDF documents
- Microsoft Word (.docx, .doc)
- Text files (.txt, .md)
- Web pages (HTML)
- CSV and Excel files
- And more…
Response
Returns an array of created document objects:Knowledge base ID
Unique identifier for the document (UUID)
Document name extracted from URL (nullable)
URL of the document
Initial processing status:
pendingExample Request
Example Response
id field is null initially. The document is queued for processing. After a few seconds, you can retrieve the document list to get the assigned ID.
Processing Flow
- Upload - Documents are queued for processing
- Download - System downloads documents from provided URLs
- Extract - Text content is extracted from documents
- Chunk - Content is split into searchable chunks
- Embed - Chunks are converted to vector embeddings
- Index - Embeddings are stored in the vector database
Supported File Types
- Documents: PDF, DOCX, DOC, TXT, MD, RTF
- Spreadsheets: CSV, XLSX, XLS
- Presentations: PPTX, PPT
- Web: HTML, XML
- Code: JSON, YAML, various programming languages
Notes
- Documents must be publicly accessible via HTTP/HTTPS
- Maximum file size: 50MB per document
- Processing happens asynchronously - use [Get Document](/API reference/v1/knowledge/get-document) to check status
- Duplicate URLs will create separate document entries
See Also
- [List Documents](/API reference/v1/knowledge/list-documents) - View all documents in a knowledge base
- [Get Document](/API reference/v1/knowledge/get-document) - Check document processing status
- [Delete Document](/API reference/v1/knowledge/delete-document) - Remove documents
- [Search Knowledge Base](/API reference/v1/knowledge/search-knowledge-base) - Search indexed documents
Authorizations
API Key for authentication
Path Parameters
Body
application/json
Request model for adding documents to a knowledge base.
Documents URLs

